package com.ruihu.admin.module.business.electric.config.domain.dto;

import lombok.Data;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 新建 [ 电芯型号维护表 ]
 *
 * @author Tony
 * @version 1.0
 * @company 瑞虎（南京）信息技术有限公司
 * @copyright (c) 2018 瑞虎（南京）信息技术有限公司Inc. All rights reserved.
 * @date  2022-12-28 12:14:15
 * @since JDK1.8
 */
@Data
public class ElectricConfigAddDTO {

    @NotEmpty(message = "电芯编码不能为空")
    @ApiModelProperty(value = "电芯编码",required = true)
    private String code;

    @NotNull(message = "配置类型不能为空")
    @ApiModelProperty(value = "配置类型",required = true)
    private Integer configType;

    @NotEmpty(message = "电芯类型不能为空")
    @ApiModelProperty(value = "电芯类型",required = true)
    private String type;

    @ApiModelProperty("描述")
    private String remark;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty("创建人")
    private Long creator;

    @ApiModelProperty("更新人")
    private Long updater;


}
